﻿		<?php 
			@session_start() ; 
			include("../model/main.php");
			os::gzip();
			$phanloaisp = $_REQUEST['view'];
			$tenchuyenmuc = $_REQUEST['tenchuyenmuc'];
			$loaisanpham = convertViText::chuyennghia($tenchuyenmuc,$phanloaisp);
		?>
			<a href="http://www.shopping365.vn" style="-webkit-animation: appear 0.8s ease-in-out 0.8s backwards;-moz-animation: appear 0.8s ease-in-out 0.8s backwards;font-size:80px;color:#b00;z-index:99900;position:fixed;bottom:55px;right:100px;text-shadow:-2px -1px 0 #000 !important">SHOPPING 365</a>						
			<div id="top-head">
				<center>
					<div id="bannershopping365-content">
						<span><a href="">THỜI TRANG </a></span>
						<span><b>
							<a>. <?php echo $loaisanpham; ?></a>			&nbsp;&nbsp;&nbsp;&nbsp;	&nbsp;&nbsp;&nbsp;&nbsp;						
							<a href="javascript:" onclick="js.area('toanquoc')">TOÀN QUỐC</a>			&nbsp;&nbsp;&nbsp;&nbsp;	&nbsp;&nbsp;&nbsp;&nbsp;	
							<a href="javascript:" onclick="js.area('hanoi')">HÀ NỘI</a>			&nbsp;&nbsp;&nbsp;&nbsp;	&nbsp;&nbsp;&nbsp;&nbsp;	
							<a href="javascript:" onclick="js.area('saigon')">SÀI GÒN</a>			&nbsp;&nbsp;&nbsp;&nbsp;	&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="javascript:" onclick="js.area('tinhkhac')">CÁC TỈNH KHÁC</a>				&nbsp;&nbsp;&nbsp;&nbsp;	&nbsp;&nbsp;&nbsp;&nbsp;
						</b></span>
					</div>
				</center>
			</div>
			<div id="top-head2"></div>
			<center>
				<ul class="tt-wrapper-tooltips" style="z-index:9999999">
					<li><a class="tt-facebook" href="https://www.facebook.com" target="_blank"><span>Facebook</span></a></li>
				</ul>
			</center>
			<div id="bannershopping365" >
				<center>			
					<div class="banner">
						<!-- BANNER QUẢNG CÁO -->
							<?php
								$getbanner = query::bannerquangcao($tenchuyenmuc);
								if($getbanner!=null){
							?>
									<div id="sliderFrame">				
										<div id="slider">
											<?php foreach($getbanner as $bn){ ?>
												<a href="<?php echo $bn[3] ; ?>" target="_blank">
													<img src="images/thoitrang/ao/<?php echo $bn[5] ; ?>" alt="<?php echo $bn[4] ; ?>" width="800" height="300px"/>
												</a>
											<?php } ?>
										</div>
									</div>
							<?php
								} else {
							?>
									<div id="sliderFrame">		
										<div id="slider">
											<a href="quangcao" target="_blank">
												<img src="images/thoitrang/1.jpg" alt="MỜI ĐẶT QUẢNG CÁO TẠI ĐÂY [ĐK 350 X 350 ] px . LIÊN HỆ : 0909.061181 ." width="800" height="300px"/>
											</a>
										</div>
									</div>

							<?php
								}
							?>
					</div>
					<div class="container-ct" >     	
						<div id="ss-container" class="ss-container">		
							<?php
								$shops  = null ;
								$shops = query::shops($tenchuyenmuc."_".$phanloaisp);
								if($shops!=null){
									#SHOW ITERATOR SHOP
									foreach($shops as $x){
										$khuvuc = strtoupper(processing::nonVitext($x[8]));
										if($khuvuc=='HA NOI'){ ?>
											<div class="ss-row ss-medium hanoi"><?php include("../control/showshops.php"); ?></div>
							<?php 		} else if($khuvuc=='SAI GON'){  ?>
											<div class="ss-row ss-medium saigon"><?php include("../control/showshops.php"); ?></div>
							<?php		} else{ ?>		
											<div class="ss-row ss-medium tinhkhac"><?php include("../control/showshops.php"); ?></div>
							<?php 		}
									}
								} else include ("../view/notproduct.php");
							?>							
						</div>
					</div>
					<div class="empty-thoitrang"></div>
				</center>
			</div>	
			<?php 	
					$now = getdate(); 
					if($now["mday"]<10) $now["mday"] = '0'.$now["mday"];
					if($now["mon"]<10) $now["mon"] = '0'.$now["mon"];	
			?>
			<div id="bottom-head">
				<center>
					<div id="bottom-head-content">
						<a>	
							<b><?php echo $now["mday"]."/".$now["mon"]."/".$now["year"] ; ?>	</b>&nbsp;
							<b id="clock"></b>		&nbsp;
							<b>IP : <?php echo checks::checkIPClient(); ?> </b> &nbsp;
						<a/>	
					</div>
				</center>
			</div>
			
